//
//  cell.swift
//  weiboSwift1.0
//
//  Created by xuNick on 16/4/23.
//  Copyright © 2016年 NN. All rights reserved.
//

import UIKit

class cell: UIImageView {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
               self.addSubview(flagView)
        flagView.snp_makeConstraints(closure: { (make) -> Void in
            make.trailing.bottom.equalTo(self)
        })
        
        self.addSubview(flagLong)
        flagLong.snp_makeConstraints(closure: { (make) -> Void in
            make.trailing.bottom.equalTo(self)
        })
        self.userInteractionEnabled = true
       
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    lazy var flagView:UIImageView = UIImageView(image: UIImage(named: "timeline_image_gif"))

    lazy var flagLong:UILabel = {
        let label = UILabel(textColor: UIColor.redColor(), fontSize: 14)
        label.text = "长图"
        label.hidden = true
        return label
    }()
    
   

}
